#include "um_basic_types.h"
#include "umapi_libc.h"
#include "umapi_os.h"
#include "httpTools.h"
#include <sys/epoll.h>
#include "errno.h"

typedef struct
{
	UM_S32 len;
	UM_CHAR cmdbuff[1024];
}CMD;
UM_VOID loopSystemCmd(int fd)
{
	UM_S32 rlen;
	UM_CHAR cmdbuff[1024];
	while(1)
	{
		CMD cmd;
		rlen = read(fd, &cmd, sizeof(CMD));
		if(rlen >0 && cmd.len >0)
		{		
			system(cmd.cmdbuff);
		}
	}
}

